home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / Think C dcmd 1.0.1.sit / Think C dcmd 1.0.1 ƒ / Think Put Lib source / PutUDecTo.c < prev    next >
MacBinary  |  1994-08-31  |  1.0 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: PutUDecTo.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Aug 31 18:52:13 1994, modified Wed Aug 31 18:52:13 1994, creator Think C, type ASCII, 466 bytes "PutUDecTo.c" , at 0x252 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 50 75 74 55 44 65 | 63 54 6f 2e 63 00 00 00 |..PutUDe|cTo.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 01 d2 00 | 00 01 7e aa 8a ba 1d aa |........|..~.....|
|00000060| 8a ba 1d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 83 1b 00 00 |........|........|
|00000080| 09 65 78 74 65 72 6e 09 | 73 68 6f 72 74 09 09 09 |.extern.|short...|
|00000090| 5f 5f 70 75 74 4d 61 72 | 6b 3b 0d 0d 76 6f 69 64 |__putMar|k;..void|
|000000a0| 20 50 75 74 43 68 61 72 | 28 63 68 61 72 20 63 29 | PutChar|(char c)|
|000000b0| 3b 0d 76 6f 69 64 20 50 | 75 74 54 65 78 74 28 63 |;.void P|utText(c|
|000000c0| 6f 6e 73 74 20 63 68 61 | 72 2a 20 73 2c 20 69 6e |onst cha|r* s, in|
|000000d0| 74 20 6c 65 6e 20 29 3b | 0d 76 6f 69 64 20 5f 5f |t len );|.void __|
|000000e0| 44 65 63 54 6f 54 65 78 | 74 20 28 75 6e 73 69 67 |DecToTex|t (unsig|
|000000f0| 6e 65 64 20 6c 6f 6e 67 | 20 64 65 63 2c 20 63 68 |ned long| dec, ch|
|00000100| 61 72 2a 20 73 74 72 20 | 29 3b 0d 76 6f 69 64 20 |ar* str |);.void |
|00000110| 50 75 74 53 70 61 63 65 | 73 54 6f 28 69 6e 74 20 |PutSpace|sTo(int |
|00000120| 65 6e 64 70 6f 73 29 3b | 0d 0d 76 6f 69 64 20 50 |endpos);|..void P|
|00000130| 75 74 55 44 65 63 54 6f | 28 75 6e 73 69 67 6e 65 |utUDecTo|(unsigne|
|00000140| 64 20 6c 6f 6e 67 20 69 | 2c 20 69 6e 74 20 65 6e |d long i|, int en|
|00000150| 64 70 6f 73 29 0d 7b 0d | 09 09 69 6e 74 09 09 20 |dpos).{.|..int.. |
|00000160| 73 74 61 72 74 2c 20 6e | 20 3d 20 30 3b 0d 09 09 |start, n| = 0;...|
|00000170| 63 68 61 72 2a 09 20 73 | 74 72 20 3d 20 22 30 30 |char*. s|tr = "00|
|00000180| 30 30 30 30 30 30 30 30 | 22 3b 0d 09 0d 09 5f 5f |00000000|";....__|
|00000190| 44 65 63 54 6f 54 65 78 | 74 20 28 69 2c 20 73 74 |DecToTex|t (i, st|
|000001a0| 72 20 29 3b 0d 09 0d 09 | 77 68 69 6c 65 20 28 20 |r );....|while ( |
|000001b0| 73 74 72 5b 6e 5d 20 3d | 3d 20 27 30 27 20 26 26 |str[n] =|= '0' &&|
|000001c0| 20 6e 3c 39 20 29 0d 09 | 09 6e 2b 2b 3b 0d 09 0d | n<9 )..|.n++;...|
|000001d0| 09 73 74 61 72 74 20 3d | 20 65 6e 64 70 6f 73 20 |.start =| endpos |
|000001e0| 2d 20 28 31 30 2d 6e 29 | 3b 0d 09 0d 09 69 66 20 |- (10-n)|;....if |
|000001f0| 28 20 73 74 61 72 74 20 | 3e 3d 20 5f 5f 70 75 74 |( start |>= __put|
|00000200| 4d 61 72 6b 20 29 0d 09 | 09 50 75 74 53 70 61 63 |Mark )..|.PutSpac|
|00000210| 65 73 54 6f 28 20 73 74 | 61 72 74 2d 31 20 29 3b |esTo( st|art-1 );|
|00000220| 0d 09 09 0d 09 50 75 74 | 43 68 61 72 28 20 27 23 |.....Put|Char( '#|
|00000230| 27 20 29 3b 0d 09 50 75 | 74 54 65 78 74 28 20 26 |' );..Pu|tText( &|
|00000240| 73 74 72 5b 6e 5d 2c 20 | 31 30 2d 6e 20 29 3b 0d |str[n], |10-n );.|
|00000250| 7d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000290| 00 00 00 15 06 64 63 6d | 64 2e 63 b4 02 00 02 00 |.....dcm|d.c.....|
|000002a0| 54 45 58 54 4b 41 48 4c | 00 00 00 00 00 40 00 00 |TEXTKAHL|.....@..|
|000002b0| 0b 50 75 74 55 44 65 63 | 54 6f 2e 63 02 00 02 00 |.PutUDec|To.c....|
|000002c0| 54 45 58 54 4b 41 48 4c | 01 00 ff ff ff ff 00 00 |TEXTKAHL|........|
|000002d0| 02 00 54 45 58 54 4b 41 | 48 4c 01 00 ff ff ff ff |..TEXTKA|HL......|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 aa 20 c6 cd 00 00 | 01 d2 00 00 01 7e 00 00 |... ....|.....~..|
|00000300| 00 00 0d 00 00 00 00 15 | 07 74 65 73 74 31 2e b9 |........|.test1..|
|00000310| 02 00 02 00 50 52 4f 4a | 4b 41 48 4c 01 00 ff ff |....PROJ|KAHL....|
|00000320| ff ff 00 00 00 00 00 16 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 35 86 | 00 00 36 00 a9 b5 0c 38 |......5.|..6....8|
|00000340| aa 20 c2 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |. ......|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 01 0a | 00 0b 01 18 00 10 00 00 |........|........|
|00000370| 00 00 00 00 00 00 06 00 | 00 00 00 16 00 74 04 00 |........|.....t..|
|00000380| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....|
|000003b0| 02 7d 00 52 00 3c 01 dc | 02 6c aa 8a 73 e6 00 00 |.}.R.<..|.l..s...|
|000003c0| 01 84 00 00 01 84 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|000003d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 92 71 a4 |...L...L|...2..q.|
|000003e0| 12 00 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000003f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 92 6c 34 00 00 |........|....l4..|
+--------+-------------------------+-------------------------+--------+--------+